import request from '@/utils/request'
// export function login(data) {
// }
export const login = data => request.post('/sys/login', data)
// export function getInfo(token) {
// }
// 获取用户信息
export const getUserInfo = () => request.post('/sys/profile')
// 获取用户头像
export const getUserDetail = id => request.get('/sys/user/' + id)

/**
 * @description: 获取用某个用户的信息
 * @param {*} id
 * @return {*}
 */
export function getUserDetailById(id) {
  return request({
    url: `/sys/user/${id}`
  })
}

/**
 * @description: 获取用某个用户的信息
 * @param {*} id
 * @return {*}
 */
export function getUserByIdDetail(id) {
  return request({
    url: `/sys/user/${id}`
  })
}

